<?php
class Admin_SimilarController extends Main_Controller_Action
{
    
    public function add_similarAction()
    {
        $similar= new Admin_Model_Similar();
        $similar->insertSimilar();
    }
    
    public function preDispatch(){
        	$auth = Zend_Auth::getInstance();
        	if(!$auth->hasIdentity()){
        		if($this->_request->getActionName() != 'login'){
        			$this->_redirect('admin/index/login');
        		}
        	}
        }
    
    public function taolayenAction()
    {
        echo "Tao la Yen day";
    }
    
}


